﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace Client.Control {
    /// <summary>
    /// FnButton.xaml 的交互逻辑
    /// </summary>
    public partial class FnButton : Button {

        public FnButton() {
            InitializeComponent();
        }

        public static readonly DependencyProperty IconProperty
            = DependencyProperty.Register("Icon", typeof(ImageSource), typeof(FnButton), null);

        public static readonly DependencyProperty MouseOverBrushProperty
            = DependencyProperty.Register("MouseOverBrush", typeof(Brush), typeof(FnButton), null);

        public ImageSource Icon {
            get { return (ImageSource)GetValue(IconProperty); }
            set { SetValue(IconProperty, value); }
        }
        public Brush MouseOverBrush {
            get { return (Brush)GetValue(IconProperty); }
            set { SetValue(IconProperty, value); }
        }
    }
}
